package Test10;

/**
 * Created by 14229 on 2020/2/21.
 */
public abstract class Reckon {
    private String chepaihao;
    private String pinpai;
    private String color;
    private int zujin;
    private long shijian;
    private int count;

    public  abstract int money(Reckon reckon);

    public Reckon(String chepaihao, String pinpai, String color, int zujin, long shijian, int count) {
        this.chepaihao = chepaihao;
        this.pinpai = pinpai;
        this.color = color;
        this.zujin = zujin;
        this.shijian = shijian;
        this.count = count;
    }

    @Override
    public String toString() {
        return "Reckon{" +
                "chepaihao='" + chepaihao + '\'' +
                ", pinpai='" + pinpai + '\'' +
                ", color='" + color + '\'' +
                ", zujin=" + zujin +
                ", shijian=" + shijian +
                ", count=" + count +
                '}';
    }

    public int getCount() {
        return count;
    }

    public String getChepaihao() {
        return chepaihao;
    }

    public void setChepaihao(String chepaihao) {
        this.chepaihao = chepaihao;
    }

    public String getPinpai() {
        return pinpai;
    }

    public void setPinpai(String pinpai) {
        this.pinpai = pinpai;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getZujin() {
        return zujin;
    }

    public void setZujin(int zujin) {
        this.zujin = zujin;
    }

    public long getShijian() {
        return shijian;
    }

    public void setShijian(long shijian) {
        this.shijian = shijian;
    }

    public Reckon() {
    }

    public Reckon(String chepaihao, String pinpai, String color, int zujin, long shijian) {
        this.chepaihao = chepaihao;
        this.pinpai = pinpai;
        this.color = color;
        this.zujin = zujin;
        this.shijian = shijian;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
